//###############
//FILE : SimpleMessage.java
//WRITER : Daniel Lowengrub, daniel_i_l, 320687098
//EXERCISE : oop ex3 2011
//DESCRIPTION:
//See below
//###############
package oop.ex3.protocol.messages;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import oop.ex3.exceptions.InvalidMessageException;

/**
 * This is the base class of all the messages that don't send any information other than their
 * header and ending.
 * @author daniel
 */
public abstract class SimpleMessage extends Message{

	/**
	 * Create a new message with the specified header.
	 * @param header The method header.
	 */
    public SimpleMessage(String header){
        super(header);
    }

    protected void sendDetails(DataOutputStream outputStream) throws IOException {
        //nothing to do
    }

    protected void receiveDetails(DataInputStream inputStream) throws IOException, InvalidMessageException {
        //nothing to do
    }
}
